home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9480 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 72 61 69 6e 2e |Path: ne|ws.rain.|
|00000010| 6f 72 67 21 75 73 65 6e | 65 74 0a 46 72 6f 6d 3a |org!usen|et.From:|
|00000020| 20 22 47 75 75 73 20 4c | 65 65 75 77 20 6a 72 2e | "Guus L|eeuw jr.|
|00000030| 22 20 3c 67 75 75 73 6c | 40 65 69 66 66 65 6c 2e |" <guusl|@eiffel.|
|00000040| 63 6f 6d 3e 0a 4e 65 77 | 73 67 72 6f 75 70 73 3a |com>.New|sgroups:|
|00000050| 20 63 6f 6d 70 2e 6c 61 | 6e 67 2e 63 0a 53 75 62 | comp.la|ng.c.Sub|
|00000060| 6a 65 63 74 3a 20 52 65 | 3a 20 55 4e 49 58 20 43 |ject: Re|: UNIX C|
|00000070| 20 65 78 70 65 72 74 73 | 0a 44 61 74 65 3a 20 53 | experts|.Date: S|
|00000080| 75 6e 2c 20 31 30 20 4d | 61 72 20 31 39 39 36 20 |un, 10 M|ar 1996 |
|00000090| 31 33 3a 32 39 3a 32 35 | 20 2d 30 38 30 30 0a 4f |13:29:25| -0800.O|
|000000a0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 49 6e 74 |rganizat|ion: Int|
|000000b0| 65 72 61 63 74 69 76 65 | 20 53 6f 66 74 77 61 72 |eractive| Softwar|
|000000c0| 65 20 45 6e 67 69 6e 65 | 65 72 69 6e 67 20 49 6e |e Engine|ering In|
|000000d0| 63 2e 20 68 74 74 70 3a | 2f 2f 77 77 77 2e 65 69 |c. http:|//www.ei|
|000000e0| 66 66 65 6c 2e 63 6f 6d | 2f 0a 4d 65 73 73 61 67 |ffel.com|/.Messag|
|000000f0| 65 2d 49 44 3a 20 3c 33 | 31 34 33 34 39 42 35 2e |e-ID: <3|14349B5.|
|00000100| 31 42 45 41 39 44 38 33 | 40 65 69 66 66 65 6c 2e |1BEA9D83|@eiffel.|
|00000110| 63 6f 6d 3e 0a 52 65 66 | 65 72 65 6e 63 65 73 3a |com>.Ref|erences:|
|00000120| 20 3c 34 68 75 36 74 64 | 24 37 35 32 40 66 61 6c | <4hu6td|$752@fal|
|00000130| 63 6f 6e 2e 63 63 73 2e | 75 77 6f 2e 63 61 3e 0a |con.ccs.|uwo.ca>.|
|00000140| 4e 4e 54 50 2d 50 6f 73 | 74 69 6e 67 2d 48 6f 73 |NNTP-Pos|ting-Hos|
|00000150| 74 3a 20 40 6f 75 74 62 | 61 63 6b 2e 65 69 66 66 |t: @outb|ack.eiff|
|00000160| 65 6c 2e 63 6f 6d 0a 4d | 69 6d 65 2d 56 65 72 73 |el.com.M|ime-Vers|
|00000170| 69 6f 6e 3a 20 31 2e 30 | 0a 43 6f 6e 74 65 6e 74 |ion: 1.0|.Content|
|00000180| 2d 54 79 70 65 3a 20 74 | 65 78 74 2f 70 6c 61 69 |-Type: t|ext/plai|
|00000190| 6e 3b 20 63 68 61 72 73 | 65 74 3d 75 73 2d 61 73 |n; chars|et=us-as|
|000001a0| 63 69 69 0a 43 6f 6e 74 | 65 6e 74 2d 54 72 61 6e |cii.Cont|ent-Tran|
|000001b0| 73 66 65 72 2d 45 6e 63 | 6f 64 69 6e 67 3a 20 37 |sfer-Enc|oding: 7|
|000001c0| 62 69 74 0a 58 2d 4d 61 | 69 6c 65 72 3a 20 4d 6f |bit.X-Ma|iler: Mo|
|000001d0| 7a 69 6c 6c 61 20 32 2e | 30 20 28 58 31 31 3b 20 |zilla 2.|0 (X11; |
|000001e0| 49 3b 20 4c 69 6e 75 78 | 20 31 2e 32 2e 38 20 69 |I; Linux| 1.2.8 i|
|000001f0| 35 38 36 29 0a 54 6f 3a | 20 22 57 69 74 6f 6c 64 |586).To:| "Witold|
|00000200| 20 41 2e 20 42 61 74 6f | 72 6f 77 69 63 7a 22 20 | A. Bato|rowicz" |
|00000210| 3c 77 69 74 6f 6c 64 40 | 6d 75 73 74 61 6e 67 2e |<witold@|mustang.|
|00000220| 75 77 6f 2e 63 61 3e 0a | 0a 57 69 74 6f 6c 64 20 |uwo.ca>.|.Witold |
|00000230| 41 2e 20 42 61 74 6f 72 | 6f 77 69 63 7a 20 77 72 |A. Bator|owicz wr|
|00000240| 6f 74 65 3a 0a 3e 20 0a | 3e 20 48 65 6c 6c 6f 21 |ote:.> .|> Hello!|
|00000250| 0a 3e 20 20 20 20 20 20 | 20 20 20 49 20 61 63 74 |.> | I act|
|00000260| 75 61 6c 6c 79 20 68 61 | 76 65 20 74 77 6f 20 71 |ually ha|ve two q|
|00000270| 75 65 73 74 69 6f 6e 73 | 3a 0a 3e 20 31 2e 20 48 |uestions|:.> 1. H|
|00000280| 6f 77 20 64 6f 20 77 65 | 20 64 65 62 75 67 20 61 |ow do we| debug a|
|00000290| 20 70 72 6f 67 72 61 6d | 20 77 72 69 74 74 65 6e | program| written|
|000002a0| 20 69 6e 20 43 20 77 69 | 74 68 20 65 69 74 68 65 | in C wi|th eithe|
|000002b0| 72 20 64 62 78 20 6f 72 | 20 67 64 62 20 74 68 61 |r dbx or| gdb tha|
|000002c0| 74 20 68 61 73 0a 3e 20 | 61 72 67 75 6d 65 6e 74 |t has.> |argument|
|000002d0| 73 20 70 61 73 73 65 64 | 20 74 6f 20 74 68 65 20 |s passed| to the |
|000002e0| 6d 61 69 6e 28 29 2e 20 | 45 67 2e 20 53 75 70 70 |main(). |Eg. Supp|
|000002f0| 6f 73 65 20 6d 79 20 70 | 72 6f 67 72 61 6d 20 69 |ose my p|rogram i|
|00000300| 73 20 63 61 6c 6c 65 64 | 20 74 65 73 74 2c 0a 3e |s called| test,.>|
|00000310| 20 74 68 65 72 65 66 6f | 72 65 20 49 20 77 6f 75 | therefo|re I wou|
|00000320| 6c 64 20 63 61 6c 6c 20 | 69 74 3a 20 74 65 73 74 |ld call |it: test|
|00000330| 20 61 72 67 31 20 61 72 | 67 32 2e 20 49 20 74 72 | arg1 ar|g2. I tr|
|00000340| 69 65 64 20 67 64 62 20 | 74 65 73 74 20 61 72 67 |ied gdb |test arg|
|00000350| 31 20 61 72 67 32 20 62 | 75 74 20 69 74 0a 3e 20 |1 arg2 b|ut it.> |
|00000360| 64 6f 65 73 6e 27 74 20 | 77 6f 72 6b 2c 20 61 6e |doesn't |work, an|
|00000370| 64 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 61 74 |d the do|cumentat|
|00000380| 69 6f 6e 20 69 73 20 6e | 6f 74 20 76 65 72 79 20 |ion is n|ot very |
|00000390| 69 6e 74 75 69 74 69 76 | 65 2e 2e 2e 3b 2d 28 0a |intuitiv|e...;-(.|
|000003a0| 3e 20 0a 0a 54 68 65 20 | 65 71 75 69 76 61 6c 65 |> ..The |equivale|
|000003b0| 6e 74 20 66 6f 72 20 74 | 68 69 73 20 69 73 3a 0a |nt for t|his is:.|
|000003c0| 25 20 67 64 62 20 74 65 | 73 74 0a 3c 67 64 62 3e |% gdb te|st.<gdb>|
|000003d0| 20 73 65 74 20 61 72 67 | 73 20 61 72 67 31 20 61 | set arg|s arg1 a|
|000003e0| 72 67 32 0a 0a 3e 20 32 | 2e 20 49 20 74 69 72 65 |rg2..> 2|. I tire|
|000003f0| 64 20 6d 79 20 70 72 6f | 67 72 61 6d 20 77 69 74 |d my pro|gram wit|
|00000400| 68 20 67 64 62 20 61 6e | 64 20 64 62 78 20 64 65 |h gdb an|d dbx de|
|00000410| 62 75 67 67 65 72 73 2e | 20 54 68 65 79 20 77 6f |buggers.| They wo|
|00000420| 72 6b 20 28 73 65 65 20 | 74 68 65 20 73 79 6d 62 |rk (see |the symb|
|00000430| 6f 6c 0a 3e 20 74 61 62 | 6c 65 29 2e 20 57 68 65 |ol.> tab|le). Whe|
|00000440| 6e 20 49 20 74 72 79 20 | 6d 79 20 70 72 6f 67 72 |n I try |my progr|
|00000450| 61 6d 20 77 69 74 68 20 | 78 78 67 64 62 20 49 20 |am with |xxgdb I |
|00000460| 67 65 74 20 74 68 65 20 | 6d 65 73 73 61 67 65 20 |get the |message |
|00000470| 74 68 61 74 20 74 68 65 | 20 73 79 6d 62 6f 6c 0a |that the| symbol.|
|00000480| 3e 20 74 61 62 6c 65 20 | 69 73 20 6e 6f 74 20 74 |> table |is not t|
|00000490| 68 65 72 65 2e 20 47 6f | 20 66 69 67 75 72 65 2e |here. Go| figure.|
|000004a0| 20 42 79 20 74 68 65 20 | 77 61 79 2c 20 49 20 64 | By the |way, I d|
|000004b0| 69 64 20 63 6f 6d 70 69 | 6c 65 20 6d 79 20 73 6f |id compi|le my so|
|000004c0| 75 72 63 65 20 77 69 74 | 68 20 2d 67 0a 3e 20 73 |urce wit|h -g.> s|
|000004d0| 77 69 74 63 68 2e 0a 0a | 49 27 6d 20 6e 6f 74 20 |witch...|I'm not |
|000004e0| 74 6f 6f 20 73 75 72 65 | 2c 20 62 75 74 20 6d 79 |too sure|, but my|
|000004f0| 20 63 6f 6d 70 69 6c 65 | 72 20 6c 65 65 74 20 6d | compile|r leet m|
|00000500| 65 20 73 70 65 63 69 66 | 79 20 77 68 61 74 20 64 |e specif|y what d|
|00000510| 65 62 75 67 67 65 72 20 | 49 20 77 61 6e 74 20 74 |ebugger |I want t|
|00000520| 6f 20 75 73 65 2e 0a 49 | 20 63 61 6e 20 73 70 65 |o use..I| can spe|
|00000530| 63 69 66 79 20 2d 67 67 | 64 62 20 61 6e 64 20 75 |cify -gg|db and u|
|00000540| 73 65 20 74 68 65 20 74 | 65 73 74 20 70 72 6f 67 |se the t|est prog|
|00000550| 72 61 6d 20 77 69 74 68 | 20 62 6f 74 68 20 67 64 |ram with| both gd|
|00000560| 62 20 61 6e 64 20 78 78 | 67 64 62 2e 0a 48 61 76 |b and xx|gdb..Hav|
|00000570| 65 20 61 20 6c 6f 6f 6b | 20 6f 6e 20 74 68 65 20 |e a look| on the |
|00000580| 6d 61 6e 20 70 61 67 65 | 20 66 6f 72 20 79 6f 75 |man page| for you|
|00000590| 72 20 63 6f 6d 70 69 6c | 65 72 2e 0a 0a 48 6f 70 |r compil|er...Hop|
|000005a0| 65 20 74 68 69 73 20 68 | 65 6c 70 73 2c 0a 09 47 |e this h|elps,..G|
|000005b0| 75 75 73 0a | |uus. | |
+--------+-------------------------+-------------------------+--------+--------+